<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<div class="head_course" style="background-color:#A5C4E3">กระทู้ใหม่ </div>
<div class="nav">
<%= link_to 'Forum', {:action => 'forum_list'} %> -> <%= link_to @forum.forum_name, {:action => 'view_forum', :id => @forum} %>
</div>
<br>
<% form_tag :action => 'create_topic', :method => 'post' do %>
  <%= hidden_field(:topic, :forum_id, :value => @forum.id, :live=>false) %>
  <table align="center">
    <tr>
      <td valign="top">ตั้งกระทู้</td>
      <td><%= text_area :topic, :topic_name, :size => '40x10', :live=>false %></td>
    </tr>
    <tr>
      <td></td>
      <td align="center"><%= submit_tag "Post" %></td>
    </tr>
  </table>
<% end %>
